-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add logrlint #3093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add logrlint #3093
Conversation
Hey, thank you for opening your first Pull Request ! |
0d2539b
to
a06609c
Compare
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements. Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
a36de60
to
9406328
Compare
Signed-off-by: Timon Wong <[email protected]>
Signed-off-by: Timon Wong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@timonwong What made you decide to archive the repository? I see it's been moved to a new one, but it makes for an annoying set of changes to golangci-lint to get a dependency update now... |
Hi, sorry for the late comment. logger/logger.go:54:28: odd number of arguments passed as key-value pairs for logging (logrlint)
l.V(DebugLevel).Info(msg, keysAndValues...)
^ What's the proper course to address this issue? |
A follow-up (related) question - should |
Co-authored-by: Fernandez Ludovic <[email protected]>
https://github.com/timonwong/logrlint
logrlint is a linter for go-logr/logr, which lint the number of key value pairs (should be even).
Though I'm not sure whether it's good to add a very specific linter here :(